//
//  BindHelpView.swift
//  Pods
//
//  Created by 易先生 on 2022/9/9.
//

import UIKit
import MYModule

class BindHelpView: View {

	override func makeUI() {
		super.makeUI()
		self.addSubview(titleLabel)
		self.addSubview(descLabel)

		titleLabel.snp.makeConstraints { make in
			make.leading.equalToSuperview()
			make.trailing.equalToSuperview()
			make.top.equalToSuperview()
		}

		descLabel.snp.makeConstraints { make in
            make.top.equalTo(titleLabel.snp.bottom).offset(10)
			make.leading.equalToSuperview()
			make.trailing.equalToSuperview()
			make.bottom.equalToSuperview()
		}
	}

	public func configTitle(title: String, desc: String) {
		titleLabel.text = title
		descLabel.text = desc
	}

	private lazy var titleLabel: Label = {
		let titleLabel = Label()
		titleLabel.font = Fonts.systemFont(ofSize: 14)
		titleLabel.textColor = UIColor.assist_222222
		titleLabel.numberOfLines = 0
		return titleLabel
	}()

	private lazy var descLabel: Label = {
		let descLabel = Label()
		descLabel.font = Fonts.systemFont(ofSize: 12)
		descLabel.textColor = UIColor.assist_A9A9A9
		descLabel.numberOfLines = 0
		return descLabel
	}()

}
